import { createRouter,createWebHistory, } from 'vue-router'

import Rent from '../views/Rent.vue'

const routes = [
    {
        path: '/',
        component:()=>import('../views/Home.vue')
    },
    {
        path: '/Home',
        component:()=>import('../views/Home.vue')
    },
    {
        path: '/Rent',
        component:Rent,
        props: true
    },
    {
        path: '/Rent/:dressid',
        component:Rent,
        props: true
    },
    {
        path: '/RentRecord',
        component:()=>import('../views/RentRecord.vue')
    },
    {
        path: '/Personal',
        component:()=>import('../views/Personal.vue')
    },
    {
        path: '/Login',
        component:()=>import('../views/Login.vue')
    },
]

const router = createRouter({
    history:createWebHistory(),
    routes
})

export default router